<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnStatusAndModerateByAndModerateAtVassetisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            $table->unsignedTinyInteger('status')->default(0)->comment('0:初始默认状态,1:上线审核中,2:审核通过,已上线,3:审核不通过,4:发布中,5:发布成功,6:发布失败,7:下线审核中,8:下线审核通过,已下线
            9:下线审核不通过');
            $table->string('moderate_by')->default('0');
            $table->timestamp('moderate_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
